const LowerLevelView = () => import(/* webpackChunkName: "lower-level-center" */ '@/views/lower-level-center');

const SubMember = () => import(/* webpackChunkName: "lower-level-center" */ '@/views/lower-level-center/sub-member/sub-member');
const LowerAgent = () => import(/* webpackChunkName: "lower-level-center" */ '@/views/lower-level-center/lower-agent/lower-agent');
const ManAccount = () => import(/* webpackChunkName: "lower-level-center" */ '@/views/lower-level-center/man-account/man-account');

export default [
  {
    path: '/lower-level',
    component: LowerLevelView,
    children: [
      {
        path: '',
        name: 'lower-level-center',
        redirect: {
          name: 'lower-level'
        },
      },
      {
        path: 'member/:username?',
        name: 'lower-level',
        props: true,
        component: SubMember
      },
      {
        path: 'agent',
        name: 'lower-agent',
        component: LowerAgent
      },
      {
        path: 'account',
        name: 'lower-account',
        component: ManAccount
      }
    ]
  },
];
